import type { LoginDataBack, LoginParams, LoginParamsApI } from '@/types/user'
import { request } from '@/utils/request'

// 登录业务
export const Login = (data: LoginParams) => {
  return request<LoginDataBack>('v1_0/authorizations', 'POST', data)
}

// 获取用户数据业务
export const getUserInfo = () => {
  return request<LoginParamsApI>('v1_0/user/profile', 'GET')
}
